﻿using System;
using System.Xml.Serialization;
using mmCore.Common;

namespace mmImdbProvider
{
    [Serializable]
    public class SearchMovieResult: NotifyPropertyChangedBase
    {
        #region MEMBERS
        [XmlIgnore]
        private string _title;
        [XmlIgnore]
        private string _id;
        [XmlIgnore]
        private string _coverUrl;
        [XmlIgnore]
        private string _coverLocal;
        [XmlIgnore]
        private string _year;

        #endregion MEMBERS

        public string Title
        {
            set 
            { 
                _title = value;
                RaisePropertyChanged(() => Title); 
            }
            get { return _title; }
        }
        
        public string Id
        {
            set { _id = value; RaisePropertyChanged(() => Id); }
            get { return _id; }
        }

        public string CoverUrl
        {
            set { _coverUrl = value; RaisePropertyChanged(() => CoverUrl); }
            get { return _coverUrl; }
        }

        public string CoverLocal
        {
            set { _coverLocal = value; RaisePropertyChanged(() => CoverLocal); }
            get { return _coverLocal; }
        }

        public string Year
        {
            set { _year = value; RaisePropertyChanged(() => Year); }
            get { return _year; }
        }
    }
}
